package com.dk.system.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version:1.00.00
 * @description:测试
 * @author:DK
 * @date:2021-06-079:45
 */
@RestController
public class TestController {
    @GetMapping("/test")
    @PreAuthorize("hasAnyAuthority('/p/p1')")
    public String test(){
        return "ok";
    }
}
